package com.goktech.olala.core.service;

import com.github.pagehelper.PageInfo;
import com.goktech.olala.core.req.ReqPicture;
import com.goktech.olala.core.resp.RespPictureVo;

public interface IPictureService {

    PageInfo<RespPictureVo> queryPictureByParam(ReqPicture reqPicture, int pageNum, int pageSize) throws Exception;

    RespPictureVo queryPictureById(Long pictureId) throws Exception;

    int removePictureById(Long pictureId) throws Exception;

    int savePictureInfo(ReqPicture reqPicture) throws Exception;

    /**
     * 修改图片的状态值
     *
     * @param pictureId
     * @param status
     * @return
     * @throws Exception
     */
    int updatePictureStatus(Long pictureId, int status) throws Exception;
}
